package com.example.wechatdaka.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wechatdaka.entity.Checkwork;
import com.example.wechatdaka.mapper.CheckworkMapper;
import com.example.wechatdaka.service.CheckworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2020-11-30
 */
@Service
public class CheckworkServiceImpl extends ServiceImpl<CheckworkMapper, Checkwork> implements CheckworkService {
    @Autowired
    private CheckworkMapper checkworkMapper;

    @Override
    public IPage<Checkwork> queryAll(Page page) {
        return checkworkMapper.queryAll(page);
    }

    @Override
    public IPage<Checkwork> queryByTeacherKeyword(Page page, String keyword) {
        return checkworkMapper.queryByTeacherKeyword(page,keyword);
    }

    @Override
    public IPage<Checkwork> queryByKeyword(Page page, String keyword) {
        return checkworkMapper.queryByKeyword(page,keyword);
    }

    @Override
    public IPage<Checkwork> queryAllByTeaId(Page page, String id) {
        return checkworkMapper.queryAllByTeaId(page,id);
    }

    @Override
    public Checkwork queryByIdMini(String checkId) {
        return checkworkMapper.queryByIdMini(checkId);
    }

    @Override
    public List<String> queryUnSignByClazz(String clazzId, String checkId) {
        return checkworkMapper.queryUnSignByClazz(clazzId,checkId);
    }
}
